package com.mallplus.common.entity.ums;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mallplus.common.entity.BaseEntity;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 *      会员等级表
 * </p>
 *
 * @author zscat
 * @since 2019-04-19
 */
@Data
@ToString
@TableName("ums_member_level")
public class UmsMemberLevel extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 会员等级名
     */
    private String name;

    /**
     * 会员成长值
     */
    @TableField("growth_point")
    private Integer growthPoint;

    /**
     * 是否为默认等级：0->不是；1->是
     */
    @TableField("default_status")
    private Integer defaultStatus;

    /**
     * 免运费标准
     */
    @TableField("free_freight_point")
    private BigDecimal freeFreightPoint;

    /**
     * 每次评价获取的成长值
     */
    @TableField("comment_growth_point")
    private Integer commentGrowthPoint;

    /**
     * 是否有免邮特权
     */
    @TableField("privilege_free_freight")
    private Integer privilegeFreeFreight;

    /**
     * 是否有签到特权
     */
    @TableField("privilege_sign_in")
    private Integer privilegeSignIn;

    /**
     * 是否有评论获奖励特权
     */
    @TableField("privilege_comment")
    private Integer privilegeComment;

    /**
     * 是否有专享活动特权
     */
    @TableField("privilege_promotion")
    private Integer privilegePromotion;

    /**
     * 是否有会员价格特权
     */
    @TableField("privilege_member_price")
    private Integer privilegeMemberPrice;

    /**
     * 是否有生日特权
     */
    @TableField("privilege_birthday")
    private Integer privilegeBirthday;

    /**
     * 可发文章数
     */
    @TableField("article_count")
    private Integer articleCount;

    /**
     * 可发商品数
     */
    @TableField("goods_count")
    private Integer goodsCount;

    /**
     * 成为会员的价格
     */
    private BigDecimal price;

    private String note;

}
